<?php

/**
 * Description of ExportGenerator
 *
 * @author jay
 */
class ExportGenerator {

    protected $publishableUinList;
    public $maxTransactionCount = 100;
    public $transactionCount = 0;

    public function resetDoctrineConnection() {
        if (sfConfig::get('app_fixes_database_force_impexp_reset', true)) {
            Doctrine_Manager::connection()->close();
        }
        $this->transactionCount = 0;
    }

    /**
     * Cache a list of publishable UIN's
     */
    public function setPublishableUinList($collectionList) {
        $this->publishableUinList = array();
        foreach ($collectionList as $collection) {
            $this->publishableUinList[] = $collection->getUin();
        }


    }

    public function encodeSpecialCharacters($input) {
        return htmlspecialchars($input);
    }

    public function decodeSpecialCharacters($input) {
        return htmlspecialchars_decode($input);
    }



}

?>
